using System;
using System.Collections.Generic;
using System.Text;
using Spacedash.Logic.Scenario.Cells;
using Barrage;
using Barrage.Meshes;
using Barrage.Items;
using Barrage.Shaders;
using Barrage.Global;

namespace Spacedash.Game.Items
{
    class CellItem:Item
    {
        public CellItem(CellData data)
        {
            foreach (string mesh in data.Meshes)
            {
                Mesh m = MeshManager.Meshes[mesh];
                m.Shader = new D3DShader(Store.PathConfig[Store.SHADER_PATH] + data.Shader + ".fx");
                addMesh(m);
            }
            
        }
    }
}
